//Source file: D:\\aaa\\com\\ce\\pms\\renovation\\model\\AbstractInspectionDO.java

package com.ce.pms.renovation.model;

import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:抽象的装修验收 关联数据表:RM_INSPECTION
 *
 * @author yandawei
 * @CreateDate:2008-12-17
 */
@Entity
@Table(name = "RM_INSPECTION")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "INSPECTION_TYPE", discriminatorType = DiscriminatorType.STRING)
public abstract class AbstractInspectionDO implements IDomainObject{

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "INSPECTION_ID")
	private Long keyword;

	/**
	 * 验收时间，精确到小时
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "INSPECTION_DATE", nullable = false)
	private Date inspectionDate;

	/**
	 * 验收小组成员
	 */
	@Column(name = "MEMBERS", nullable = false, length = 36)
	private String members;

	/**
	 * 验收结果 001-验收通过，002-验收不通过
	 */
	@Column(name = "RESULT", nullable = false, length = 36)
	private String result;

	/**
	 * 备注
	 */
	@Column(name = "REMARK", length = 100)
	private String remark;

	@OneToOne(mappedBy = "inspection", cascade = { CascadeType.REMOVE })
	private InspectionViolationDO inspection;

	/**
	 * 系统信息
	 */
	@Embedded
	@AttributeOverride(name = "sysDate", column = @Column(name = "SYS_DATE"))
	private SysInfo sysInfo;

	/**
	 * @roseuid 49473A9D0399
	 */
	public AbstractInspectionDO() {

	}

	public AbstractInspectionDO(Long keyword) {
		super();
		this.keyword = keyword;
	}

	public Date getInspectionDate() {
		return inspectionDate;
	}

	public void setInspectionDate(Date inspectionDate) {
		this.inspectionDate = inspectionDate;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getMembers() {
		return members;
	}

	public void setMembers(String members) {
		this.members = members;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

	public InspectionViolationDO getInspection() {
		return inspection;
	}

	public void setInspection(InspectionViolationDO inspection) {
		this.inspection = inspection;
	}

}
